https://glot.io/snippets/g3oouzbcqq/raw/main.lua